import config from "@/config"
import http from "@/utils/request"

export default {
    log: {
        list: {
            url: `${config.API_URL}/class-hour/log-list`,
            name: "获取充值列表",
            get: async function (params) {
                return await http.get(this.url, params);
            }
        }
    },
    createAgent: {
        url: `${config.API_URL}/class-hour/agent`,
        name: "机构课时充值",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
    agentRefund: {
        url: `${config.API_URL}/class-hour/agent-refund`,
        name: "机构课时退费",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
    createUser: {
        url: `${config.API_URL}/class-hour/user`,
        name: "用户课时充值",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    },
    userRefund: {
        url: `${config.API_URL}/class-hour/user-refund`,
        name: "学员课时退费",
        post: async function (params) {
            return await http.post(this.url, params);
        }
    }
}